import java.util.Random;

public class NamesGen {
	public static void main( String[] args ) {
		final char[] chs = {'a','b','c','d','e','f','g','h','i','j',
			'k','l','m','n','o','p','q','r','s','t','u','v','w','x',
			'y','z','A','B','C','D','E','F','G','H','I','J','K','L',
			'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
			'!','@','#','$','%','^','&','*','_','-','+','=',':',';',
			',','.','?','/','~','`'};

		final int LINE_COUNT=10000;
		final int STRING_LEN=8;	// actually length+1 for nextInt() method
		final int STRING_MIN_LEN=5;

		StringBuilder sb = new StringBuilder();
		Random random = new Random();

		for (int i=0; i<LINE_COUNT; ++i) {

			int stringLen = random.nextInt(STRING_LEN) + STRING_MIN_LEN;

			for (int j=0; j<stringLen; ++j)
				sb.append( chs[ random.nextInt( chs.length ) ] );

			System.out.println( sb.toString() );
			sb.delete(0, sb.length()-1);	// clear sb
		}
	}
}
